package com.ai.ubssapp.util;

import java.util.ArrayList;
import java.util.List;

/**
 * des加密解密工具类
 * @author xmh
 *
 */

public class DesUtils {
	
    /**
     * DES加密
     * 
     * @Copyright Copyright (c) 2006
     * @author Guapo
     * @see DESCore
     */
    public static String enc2(String data) {
    	DesEncrypt des1 = new DesEncrypt();  
    	return des1.encrypt(data);
    }
    
    /**
     * 解密
     * @param data
     * @return
     */
    public static String dec2(String data) {
    	DesEncrypt des1 = new DesEncrypt();  
    	return des1.decrypt(data);
    }
}
